import axios from 'axios';
//获取所有幻灯片列表
let list = (params) => axios.get('/slide/list', { params });
//编辑指定id幻灯片
let edit = (data) => axios.post('/slide/edit', data);
// 添加新的幻灯片
let add = (data) => axios.post('/slide/add', data);
// 启用/禁用幻灯片
let usable = (data) => axios.post('/slide/usable', data);
// 删除指定id的幻灯片
let remove = (data) => axios.post('/slide/remove', data);
export default {
	list,
	edit,
	add,
	usable,
	remove
}
